package tech.aistar.day09.homework;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/29 9:05 上午
 */
public class MapDemo {
    public static void main(String[] args) {
        Map<String,Integer> maps = new HashMap<>();
        maps.put("a",10);

        System.out.println(maps.put("a", 20));


        Map<String, PurcaseVo> map2 = new HashMap<>();
        map2.put("a",new PurcaseVo("aa",100.0d));

        map2.get("a").setTotal(200.0d);

        System.out.println(map2);
    }
}
